home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / patches / pgs3df.lha / 3.0fUpdate / Install-PageStream3.0f next >
Text File  |  1995-02-08  |  17KB  |  452 lines

  1. ;PAGESTREAM 3.0f ONLINE UPDATE PATCH INSTALLATION SCRIPT
  2. ;COPYRIGHT ©1995 SOFT-LOGIK PUBLISHING CORPORATION
  3.  
  4. ;TEST TO SEE IF THEY HAVE BOTH ARCHIVES
  5. (if (<> (exists "Engines.LHA") 1)
  6.     (abort "You did not download the PGS3F.LHA archive. Download it and decompress it to the same directory as you decompressed this archive before continuing.")
  7. )
  8.  
  9. ;SEE IF PAGESTREAM3 AND SOFTLOGIK ARE ASSIGNED AND EVERYTHING EXISTS
  10. (set PGSdest (getassign "PageStream3" "a"))
  11. (set SLdest (getassign "SoftLogik" "a"))
  12. (if (OR (= PGSdest "") (= SLdest ""))
  13.     (abort "PageStream3: and/or SoftLogik: are not assigned. You must properly install PageStream3 before applying this update patch.")
  14. )
  15. (set @default-dest PGSdest)
  16. (if (<> (exists "PageStream3:PageStream3") 1)
  17.     (abort "PageStream3 is not in the PageStream3: directory. You must properly install PageStream3 before applying this update patch.")
  18. )
  19. (if (<> (exists "SoftLogik:Libs") 2)
  20.     (makedir "SoftLogik:Libs" (infos))
  21. )
  22. (if (<> (exists "SoftLogik:Engines") 2)
  23.     (makedir "SoftLogik:Engines" (infos))
  24. )
  25. (if (<> (exists "SoftLogik:Printers") 2)
  26.     (makedir "SoftLogik:Printers" (infos))
  27. )
  28. (if (<> (exists "SoftLogik:Filters") 2)
  29.     (makedir "SoftLogik:Filters" (infos))
  30. )
  31. (if (<> (exists "SoftLogik:Effects") 2)
  32.     (makedir "SoftLogik:Effects" (infos))
  33. )
  34. (if (<> (exists "SoftLogik:Special") 2)
  35.     (makedir "SoftLogik:Special" (infos))
  36. )
  37. (if (<> (exists "PageStream3:Help") 2)
  38.     (makedir "PageStream3:Help" (infos))
  39. )
  40. (if (<> (exists "PageStream3:Macros") 2)
  41.     (makedir "PageStream3:Macros" (infos))
  42. )
  43.  
  44. ;CHECK VERSIONS INSTALLED
  45. (working "Checking version of current PageStream3...")
  46. (makedir "env:PageStream3")
  47. (run "version PageStream3:PageStream3 full >env:PageStream3/temp")
  48. (set PGSver (substr (getenv "PageStream3/temp") 13 3))
  49. (if (= PGSver "d v")
  50.     (abort "There is insufficient memory to install this patch. Refer to the Read.1st! file for instructions.")
  51. )
  52.  
  53. (run "version PageStream3:PageLiner full >env:PageStream3/temp")
  54. (set PLver (substr (getenv "PageStream3/temp") 11 3))
  55.  
  56. ;COPY THE LHEX PROGRAM TO RAM:
  57. (copyfiles
  58.     (source "PageStream3Disk1:lhex")
  59.     (dest "ram:")
  60.     (nogauge)
  61. )
  62.  
  63. ;CHECK PATCH VERSION DOWNLOADED
  64. (working "Decompressing PageStream3.0f patch...")
  65. (run "ram:lhex >NIL: <NIL: -qfw=ram: x PGSpatch.LHA")
  66. (set PGSsize (getsize "ram:PageStream3.pch"))
  67. (set PGSpatch "nil")
  68. (if (= PGSsize 167100) (set PGSpatch ".0e"))
  69. (if (= PGSsize 688000) (set PGSpatch ".0d"))
  70.  
  71. ;DOES THE PATCH MATCH THE VERSION INSTALLED?
  72. (if (= PGSpatch "nil")
  73.     (abort "You have not downloaded the required files for this patch.\n\nPlease refer to the Read.1st! file for instructions.")
  74. )
  75. (if (<> PGSpatch PGSver)
  76.     (abort "Your current PageStream3 is version 3%s, but you have downloaded a different patch!" PGSver)
  77. )
  78.  
  79. ;SEE WHAT THE USER WANTS TO INSTALL
  80. (set ALLflag 0)
  81. (set SMAflag 1)
  82.  
  83. (message ("\n\nYour current PageStream3 is version 3%s.\n\nThis patch will update your hard drive installation to version 3.0f.\n\nYour original PageStream3 disks will not be modified by this update." PGSver))
  84. (set install_mode
  85.     (askchoice
  86.         (prompt
  87.             "\nSelect an installation option.\n\nChoose `ALL' if you have a full PageStream3 installation. Choose `ONLY' if you have a custom or minimum PageStream3 installation.\n")
  88.         (choices "Install ALL improved files" "Update ONLY the currently installed files")
  89.         (default 0)
  90.         (help
  91.             "\n\nThe ONLY option will check to see if a file exists before copying the new one to your hard drive. Thus, if you deleted the HP.printer driver because you didn't need it, the new one will not be installed.")
  92.     )
  93. )
  94.  
  95. ;WARN USER IF THEY LACK THE FULL SET OF DMF FONTS
  96. (if (AND (OR (= PGSver ".0a") (= PGSver ".0 ")) (<> (exists "PageStream3:Fonts/StandardFonts/avnt_do.dmf") 1))
  97.     (message "\nYou do not have the full set of equivalents for the standard 35 fonts (see page 16 of the manual) in your PageStream3:Fonts/StandardFonts directory. These were not included with 3.0 or 3.0a, but were included in the PS3B2.LHA update. If you do not have these fonts (avnt_o.dmf, avnt_do.dmf...), you should download this update to get them. If you moved your fonts to another directory, it is possible that you have these fonts but the installer could not find them.")
  98. )
  99.  
  100.  
  101. ;UPDATE LIBS
  102. (working "Installing Updated Libraries...")
  103. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Libs x Libs.lha")
  104. (delete "Libs.LHA" (safe))
  105.  
  106. ;UPDATE SPECIAL
  107. (working "Installing Updated Clipboard file...")
  108. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Special x Special.lha")
  109. (delete "Special.LHA" (safe))
  110.  
  111. ;UPDATE ENGINES
  112. (working "Installing Updated Engines...")
  113. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Engines x Engines.lha")
  114. (delete "Engines.LHA" (safe))
  115. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Engines/PageMaker.codes"))
  116.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Engines x PMcode.LHA")
  117. )
  118. (delete "PMcode.LHA" (safe))
  119. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Engines/ProPage.codes"))
  120.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Engines x PPcode.LHA")
  121. )
  122. (delete "PPcode.LHA" (safe))
  123. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Engines/XPress.codes"))
  124.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Engines x XPcode.LHA")
  125. )
  126. (delete "XPcode.LHA" (safe))
  127.  
  128. ;UPDATE EFFECTS
  129. (working "Installing Updated Effects...")
  130. (if (OR (= install_mode ALLflag) (= (exists "SoftLogik:Effects") 2))
  131.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Effects x Effects.lha")
  132. )
  133. (delete "Effects.LHA" (safe))
  134.  
  135. ;UPDATE PRINTER DRIVERS
  136. (working "Installing Updated Printer Drivers...")
  137. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/HP.printer"))
  138.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x HP.lha")
  139. )
  140. (delete "HP.LHA" (safe))
  141.  
  142. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/PostScript.printer"))
  143.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x PostScript.lha")
  144. )
  145. (delete "PostScript.LHA" (safe))
  146.  
  147. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/Preference.printer"))
  148.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x Preference.lha")
  149. )
  150. (delete "Preference.LHA" (safe))
  151.  
  152. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/Epson.printer"))
  153.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x Epson.lha")
  154. )
  155. (delete "Epson.LHA" (safe))
  156.  
  157. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/Fargo.printer"))
  158.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x Fargo.lha")
  159. )
  160. (delete "Fargo.LHA" (safe))
  161.  
  162. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/IFFILBM.printer"))
  163.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x IFFILBM.lha")
  164. )
  165. (delete "IFFILBM.LHA" (safe))
  166.  
  167. ;UPDATE FILTERS
  168. (working "Installing Updated Filters...")
  169. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x Filters.lha")
  170. (delete "Filters.LHA" (safe))
  171.  
  172. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/ArtExpression.gfilter"))
  173.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterAE.lha")
  174. )
  175. (delete "FilterAE.LHA" (safe))
  176.  
  177. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/PageStream2.dfilter"))
  178.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterPGS.lha")
  179. )
  180. (delete "FilterPGS.LHA" (safe))
  181.  
  182. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/ProWrite.tfilter"))
  183.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterPW.lha")
  184. )
  185. (delete "FilterPW.LHA" (safe))
  186.  
  187. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/ProPage.dfilter"))
  188.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterPP.lha")
  189. )
  190. (delete "FilterPP.LHA" (safe))
  191.  
  192. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/ProDrawClip.gfilter"))
  193.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterPD.lha")
  194. )
  195. (delete "FilterPD.LHA" (safe))
  196.  
  197. (if (OR (= install_mode ALLflag) (OR (exists "SoftLogik:Filters/WordPerfect.tfilter") (exists "SoftLogik:Filters/WordPerfect5.tfilter")))
  198.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterWP.lha")
  199. )
  200. (delete "FilterWP.LHA" (safe))
  201.  
  202. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/Wordworth.tfilter"))
  203.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterWW.lha")
  204. )
  205. (delete "FilterWW.LHA" (safe))
  206.  
  207. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/Word.tfilter"))
  208.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterMW.lha")
  209. )
  210. (delete "FilterMW.LHA" (safe))
  211.  
  212. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/Excellence.tfilter"))
  213.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterEX.lha")
  214. )
  215. (delete "FilterEX.LHA" (safe))
  216.  
  217. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/FinalWriter.tfilter"))
  218.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterFW.lha")
  219. )
  220. (delete "FilterFW.LHA" (safe))
  221.  
  222. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/IllustratorEPS.gfilter"))
  223.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterAI.lha")
  224. )
  225. (delete "FilterAI.LHA" (safe))
  226.  
  227. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/FreehandEPS.gfilter"))
  228.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterFR.lha")
  229. )
  230. (delete "FilterFR.LHA" (safe))
  231.  
  232. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/MacPaint.gfilter"))
  233.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterMP.lha")
  234. )
  235. (delete "FilterMP.LHA" (safe))
  236.  
  237. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/GIF.gfilter"))
  238.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterGI.lha")
  239. )
  240. (delete "FilterGI.LHA" (safe))
  241.  
  242. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/TIFF.gfilter"))
  243.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterTI.lha")
  244. )
  245. (delete "FilterTI.LHA" (safe))
  246.  
  247. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/BMP.gfilter"))
  248.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterBM.lha")
  249. )
  250. (delete "FilterBM.LHA" (safe))
  251.  
  252. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/PCX.gfilter"))
  253.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterPC.lha")
  254. )
  255. (delete "FilterPC.LHA" (safe))
  256.  
  257. ;UPDATE TIPS
  258. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3:Help x Tips.LHA")
  259. (delete "Tips.LHA" (safe))
  260.  
  261. ;UPDATE HELP
  262. (if (exists "PageStream3:Help/PGS.HEL")
  263.     (run "ram:lhex >NIL: <NIL: -qfw=PageStream3:Help x Help.LHA")
  264. )
  265. (delete "Help.LHA" (safe))
  266.  
  267. ;UPDATE BME2
  268. (working "Patching BME to 2.0a...")
  269. (run "ram:lhex >NIL: <NIL: -qfw=ram: x BMEpatch.LHA")
  270. (delete "BMEpatch.LHA" (safe))
  271. (run "spatch >NIL: <NIL: -oPageStream3:BME2.0a -pram:BME2.pch PageStream3:BME")
  272. (if (exists "PageStream3:BME")
  273.     (if (AND (exists "PageStream3:BME2.0a") (exists "PageStream3:BME"))
  274.         (
  275.             (delete "PageStream3:BME")
  276.             (rename "PageStream3:BME2.0a" "PageStream3:BME")
  277.         )
  278.         (message "\nThe patch to BME was not successful. Refer to the Read.1st file for further instructions.")
  279.     )
  280.     (message "\nBME was not patched because it was not installed.")
  281. )
  282. (delete "ram:BME2.pch" (safe))
  283.  
  284. ;UPDATE PAGELINER2
  285. (working "Patching PageLiner to 2.0c...")
  286. (run "ram:lhex >NIL: <NIL: -qfw=ram: x PLpatch.LHA")
  287. (delete "PLpatch.LHA" (safe))
  288. (if (= PLver ".0 ")
  289.     (run "spatch >NIL: <NIL: -oPageStream3:PageLiner2.0c -pram:PageLiner20c.pch PageStream3:PageLiner")
  290. )
  291. (if (= PLver ".0a")
  292.     (run "spatch >NIL: <NIL: -oPageStream3:PageLiner2.0c -pram:PageLiner2ac.pch PageStream3:PageLiner")
  293. )
  294. (if (= PLver ".0b")
  295.     (run "spatch >NIL: <NIL: -oPageStream3:PageLiner2.0c -pram:PageLiner2bc.pch PageStream3:PageLiner")
  296. )
  297. (if (exists "PageStream3:PageLiner")
  298.     (if (AND (exists "PageStream3:PageLiner2.0c") (exists "PageStream3:PageLiner"))
  299.         (
  300.             (delete "PageStream3:PageLiner")
  301.             (rename "PageStream3:PageLiner2.0c" "PageStream3:PageLiner")
  302.         )
  303.         (message "\nThe patch to PageLiner was not successful. Refer to the Read.1st file for further instructions.")
  304.     )
  305.     (message "\nPageLiner was not patched because it was not installed.")
  306. )
  307. (delete "ram:PageLiner20c.pch" (safe))
  308. (delete "ram:PageLiner2ac.pch" (safe))
  309. (delete "ram:PageLiner2bc.pch" (safe))
  310.  
  311. ;INSTALL PAGELINER.PREFS
  312. (if (exists "PageStream3:PageLiner")
  313.     (if (<> (exists "PageStream3:PageLiner.prefs") 1)
  314.         (run "ram:lhex >NIL: <NIL: -qfw=PageStream3: x PLprefs.LHA")
  315.     )
  316. )
  317. (delete "PLprefs.LHA" (safe))
  318.  
  319. ;INSTALL ICONS
  320. (if (= PGSver ".0d")
  321.     (if
  322.         (askbool
  323.             (prompt
  324.                 "\nIf 3.0d was your first version of PageStream3, you may not have the PageStream3 icon.\n\n"
  325.                 "Do you want to install the PageStream3 icon now?\n\n")
  326.             (help
  327.                 "The stack size for PageStream3 is 8192. A larger stack size is of no extra value, but the program cannot be used with a smaller stack. Stack sizes are set in programs' .info files, and can be viewed and changed with the Workbench Information command. The icon must be present to set the stack size.")
  328.             (choices "Install" "Skip this step")
  329.             (default 0)
  330.         )
  331.         (run "ram:lhex >NIL: <NIL: -qfw=PageStream3: x PGSicon.LHA")
  332.     )
  333. )
  334. (delete "PGSicon.LHA" (safe))
  335.  
  336. (if (<> (exists "PageStream3:BME.info") 1)
  337.     (run "ram:lhex >NIL: <NIL: -qfw=PageStream3: x BMEicon.LHA")
  338. )
  339. (delete "BMEicon.LHA" (safe))
  340.  
  341. ;INSTALL FONTLISTv2ANALYZER
  342. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/PageStream2.dfilter"))
  343.     (run "ram:lhex >NIL: <NIL: -qfw=PageStream3: x FLister.LHA")
  344. )
  345. (delete "FLister.LHA" (safe))
  346.  
  347. ;INSTALL FONT DOWNLOADER
  348. (if
  349.     (askbool
  350.         (prompt
  351.             "\nDo you want to install the\nPostScript FontDownloader utility?\n\n"
  352.             "This was accidentally omitted from previous\nreleases of PageStream3.")
  353.         (help
  354.             "Refer to page 321 for information about FontDownloader. This is only of use if you have a PostScript printer.")
  355.         (choices "Install" "Skip this step")
  356.         (default 0)
  357.     )
  358.     (run "ram:lhex >NIL: <NIL: -qfw=PageStream3: x FDloader.LHA")
  359. )
  360. (delete "FDloader.LHA" (safe))
  361.  
  362. ;UPDATE PAGESTREAM2.FONTLIST
  363. (if (AND (exists "SoftLogik:Filters/PageStream2.dfilter") (OR (= PGSver ".0a") (= PGSver ".0 ")))
  364.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x PGSfontlist.LHA")
  365. )
  366. (delete "PGSfontlist.LHA" (safe))
  367.  
  368. ;UPDATE PAGESTREAM3
  369. (working "Patching PageStream to 3.0f...\n\nThis will take from one to five minutes.")
  370. (delete "PGSpatch.LHA" (safe))
  371. (run "spatch >NIL: <NIL: -oPageStream3:PageStream3.0f -pram:PageStream3.pch PageStream3:PageStream3")
  372. (if (exists "PageStream3:PageStream3.0f")
  373.     (
  374.         (delete "PageStream3:PageStream3")
  375.         (rename "PageStream3:PageStream3.0f" "PageStream3:PageStream3")
  376.     )
  377.     (abort "Patch was not successful. Cause was probably lack of RAM, a bad disk, or an incorrect version of PageStream3. Refer to the Read.1st! file for instructions.")
  378. )
  379. (delete "ram:PageStream3.pch" (safe))
  380.  
  381. ;UPDATE MACROS
  382. (if (exists "PageStream3:Macros/PageStream3.macros")
  383.     (
  384.         (rename "PageStream3:Macros/PageStream3.macros" "PageStream3:Macros/PageStream3.macros.bak")
  385.         (message "\nYour PageStream3.macros file has been renamed to PageStream3.macros.bak. If you have added your own macros to PageStream3, you will need to append them to the new macros file.\n\nRefer to page 339 for more information.")
  386.     )
  387. )
  388. (if (exists "PageStream3:Macros/BME.macros")
  389.     (
  390.         (rename "PageStream3:Macros/BME.macros" "PageStream3:Macros/BME.macros.bak")
  391.         (message "\nYour BME.macros file has been renamed to BME.macros.bak. If you have added your own macros to PageStream3, you will need to append them to the new macros file.\n\nRefer to page 339 for more information.")
  392.     )
  393. )
  394. (working "Installing Updated Macros...")
  395. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3:Macros x Macros.lha")
  396. (delete "Macros.LHA" (safe))
  397.  
  398. ;DELETE NASTY #####.PFB FILES
  399. (if (= (exists "PageStream3:Fonts/Intellifonts") 2)
  400.     (
  401.         (delete "PageStream3:Fonts/Intellifonts/91545.pfb" (safe))
  402.         (delete "PageStream3:Fonts/Intellifonts/91546.pfb" (safe))
  403.         (delete "PageStream3:Fonts/Intellifonts/91547.pfb" (safe))
  404.         (delete "PageStream3:Fonts/Intellifonts/91548.pfb" (safe))
  405.         (delete "PageStream3:Fonts/Intellifonts/93713.pfb" (safe))
  406.         (delete "PageStream3:Fonts/Intellifonts/93714.pfb" (safe))
  407.         (delete "PageStream3:Fonts/Intellifonts/93715.pfb" (safe))
  408.         (delete "PageStream3:Fonts/Intellifonts/93716.pfb" (safe))
  409.         (delete "PageStream3:Fonts/Intellifonts/93709.pfb" (safe))
  410.         (delete "PageStream3:Fonts/Intellifonts/93711.pfb" (safe))
  411.     )
  412. )
  413.  
  414. ;UPDATE ALL FONT PATHS
  415. (
  416.     (textfile
  417.         (dest "t:PageStream3.prefs")
  418.         (include "PageStream3:PageStream3.prefs")
  419.         (append "UPDATEFONTPATHS TRUE\n")
  420.         (safe)
  421.     )
  422.     (delete "PageStream3:PageStream3.prefs" (safe))
  423.     (copyfiles
  424.         (source "t:PageStream3.prefs")
  425.         (dest "PageStream3:")
  426.         (nogauge)
  427.     )
  428.     (delete "t:PageStream3.prefs" (safe))
  429. )
  430. (message "\nThe next time you run PageStream3, all the font paths you have added to the program will be updated when the program is loaded. Don't worry that loading the program will take a fairly long time.\n\nThis will happen only the next time you run PageStream3.")
  431.  
  432. ;INSTALL README
  433. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3: x Read.LHA")
  434. (delete "Read.LHA" (safe))
  435.  
  436. ;DISPLAY README (Try 3 different ways!)
  437. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3: x Read.LHA")
  438. (delete "Read.LHA" (safe))
  439. (IF (> (run "Sys:Utilities/MultiView PageStream3:ReadMe.Now") 0)
  440.     (IF (> (run "Sys:Utilities/AmigaGuide PageStream3:ReadMe.Now") 0)
  441.         (run "More PageStream3:ReadMe.Now")
  442.     )
  443. )
  444.  
  445. ;REMOVE THE LHEX PROGRAM
  446. (delete "ram:lhex" (safe))
  447. (delete "spatch" (safe))
  448. (delete "Install-PageStream3.0f.info" (safe))
  449.  
  450. ;GEE, THAT WAS FUN
  451. (exit "PageStream 3.0f installed!")
  452.